<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  
 </body>
 <script>
	// 算工资的一题

    function money(num) {
        for (var i=1; i <= 50; i++){
             num += 0.05*num   // 加等这里可以理解为 num = num + 0.05*num ,这里用了简写
        }
        return num;
    }
     document.write(money(10000));
    console.log(money(10000))
 </script>
</html>
